

********************************************************************************************
* run regressions and create output tables for latex 
********************************************************************************************

local file_path_in "/tochange/"

*** summary statistics *** 
 do summ-stats         "main09" "" "yearfe"  "" "lnsaleamt" "" ""    "09"  ""  "" "fips" "fips" "inclpublic" ""  "" "" "06"

*** main specification ***  
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""   "09"  "" "" "fips" "fips" "inclpublic" ""  "" "" "06"

*** financial constraints ***
do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "fin_explore" ""   "09"  "" "" "fips" "fips" ""  "" "" "" "06"

*** shock by housing attributes ***
  do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips"  "" "" "houshetero" "" "06"
 
*** generate listing time data for MLS ***
 do run-results-output "main09"  "" "yearfe"  "" "time_mktGENERATE" "" ""     "09"  "" "" "fips" "fips"  "inclpublic"  "" "" "" "06"

 *** listing time *** 
 do run-results-output "main09"  "" "yearfe"  "" "time_mkt" "" ""     "09"  "" "" "fips" "fips"  "inclpublic" "" "" "" "06"

** resales
 do run-results-output "main09"  "" "yearfe"  "" "annual_return3" "" ""   "09"  "" "" "fips" "fips"  "" "" "" "" "06"

** to get pos neg shock results
do run-results-output "main09"  "asym" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips" "" ""  "" "" "06"

*** boom robustness (2005)
 do run-results-output "boom0205"  "" "yearfe"  "" "lnsaleamt" "" ""     "05"  "" "" "fips" "fips"  "inclpublic"  "" "" "" "02"

*** shock correlated with home attributes ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "shockattributes" ""  "fips" "fips" "" "" "" "" "06"

*** plot effect by county time to sale elasticity ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" "sizeplot"   "09"  "" "" "fips" "fips" "" "" "" "" "06"

 *** probability of mortgage sale
 do run-results-output "main09"  "" "yearfe"  "" "hbloan" "" ""   "09"  "" "" "fips" "fips" "" "" "" "" "06"
 
*** only look at out of state counties ***
 do run-results-output "outstate09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips" ""  "" "" "" "06"

*** all controls robustness ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "allcontrols"  ""  "fips" "fips" "" "" "" "" "06"

*** zipcode by quality fe ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips" "" "zipqu" "" "" "06"

*** differences specification ***
 do run-results-output "chg0609"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips" ""  "" "" "" "06"

*** probability that home is sold in year later than year built ***
  do run-results-output "main09"  "" "yearfe"  "" "notsoldbuilt" "" ""     "crisisyrs"  "" "" "fips" "fips" "" "" "" "" "06"

*** cluster by builder_no ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "fips" "builder_no" ""  "" "" "" "06"

*** non-overlapping shock ***
  do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "10"  "" "" "fips" "fips" "" "" "" "" "06"

*** narrow time frame of comparison ***
  do run-results-output "main09"  "" "datefe" "" "lnsaleamt" "" ""      "09"  "" "" "fips" "fips" "" "" "" "" "06"

*** zipcode level shock ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "" "zip"  "fips" "" "" "" "" "06"

*** control for log change in county hp ***
 do run-results-output "main09"  "" "yearfe"  "" "lnsaleamt" "" ""     "09"  "" "loghpZIL0609chg" "fips" "fips" "" "" "" "" "06"

 *** parallel trends ***
 do run-results-output "main09"  "" "yearfe"  "placebo" "lnsaleamt" "" ""     "09"  "" "" "fips" "fips"  "" "" "" "" "06"

timer off 1
timer list 1
